package Mapper

import (
	"github.com/gin-gonic/gin"
	"hr-system/Controller"
)

func DepartmentManageGroup(r *gin.Engine) {
	DepartmentManageRoutes := r.Group("/departmentManage")
	departmentManageController := Controller.NewDepartmentManageController()
	DepartmentManageRoutes.POST("/show", departmentManageController.PageList)// 展示&查询部门
	DepartmentManageRoutes.POST("/add", departmentManageController.Create)// 创建部门
	DepartmentManageRoutes.POST("/update/:id", departmentManageController.Update)// 更新
	DepartmentManageRoutes.POST("/delete/:id", departmentManageController.Delete)// 删除
}
